package com.xr.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Arnold Yand
 * @summary annotation for call remote service
 * @time 2018/3/26 10:56
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface RemoteService {

  /**
   * remote service name
   * @return
   */
  String value() default "";

  /**
   * call remote enforce
   * @return
   */
  boolean isRemote() default true;
}
